﻿using System;
using System.Collections.Generic;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Spring.Transaction.Interceptor;

namespace Acaweb.Data.Dao.NHibernate
{
    public class BitacorasDao : HibernateDao<Bitacoras, int>, IBitacorasDao
    {
        public IList<Bitacoras> GetByPracticante(int IdPracticante)
        {
            return Session.QueryOver<Bitacoras>().Where(t => t.IdPracticante == IdPracticante).List();
        }

        public IList<Bitacoras> GetAll()
        {
            return GetAll<Bitacoras>();
        }
    }
}
